package spring.pojo;

public class Dog {
    private String name;
    private String type;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void eat(){
        System.out.println("小狗的名字是 " + name + "，品种是 " + type + " 它喜欢吃骨头");
    }
}
